import request from '@/utils/request'

// 查询套餐危害列表
export function listBasepackageharm(query) {
  return request({
    url: '/physical/basepackageharm/list',
    method: 'get',
    params: query
  })
}

// 查询套餐危害详细
export function getBasepackageharm(id) {
  return request({
    url: '/physical/basepackageharm/' + id,
    method: 'get'
  })
}

// 新增套餐危害
export function addBasepackageharm(data) {
  return request({
    url: '/physical/basepackageharm',
    method: 'post',
    data: data
  })
}

// 修改套餐危害
export function updateBasepackageharm(data) {
  return request({
    url: '/physical/basepackageharm',
    method: 'put',
    data: data
  })
}

// 删除套餐危害
export function delBasepackageharm(id) {
  return request({
    url: '/physical/basepackageharm/' + id,
    method: 'delete'
  })
}
